package com.lingkang.sales.data.mapper;

import com.lingkang.sales.data.entity.SaRole;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author linke
 * @date 2020/11/17 21:43
 * @description
 */
public interface SaRoleMapper {

  int deleteByPrimaryKey(Integer id);

  int insertSelective(SaRole record);

  SaRole selectByPrimaryKey(Integer id);

  int updateByPrimaryKeySelective(SaRole record);

  List<SaRole> getRoles(String username);

  int countRoleName(String roleName);

  List<SaRole> getRoleList(@Param("search") String search);

  List<SaRole> getRoleListExcludeExist();
}
